<?php if (!defined('MAX_ON')){echo "<h1>ACCESS DENIED</h1>You cannot access this file directly.";exit();} ?>
<?php if ($template_hook=='start'){ ?>
<?php }elseif ($template_hook=='1'){ ?>
	<link rel="STYLESHEET" type="text/css" href="<?php echo "$max_domain"; ?>/libs/js/rich_calendar.css">
	<script language="JavaScript" type="text/javascript" src="<?php echo "$max_domain"; ?>/libs/js/rich_calendar.js"></script>
	<script language="JavaScript" type="text/javascript" src="<?php echo "$max_domain"; ?>/libs/js/rc_lang_english_en.js"></script>
	<script language="JavaScript" type="text/javascript" src="<?php echo "$max_domain"; ?>/libs/js/rc_lang_<?php echo $board_lang; ?>.js"></script>
	<script language="javascript" src="<?php echo "$max_domain"; ?>/libs/js/domready.js"></script>
	<script language="JavaScript">
		// user defined onchange handler
		function cal_on_change_dummy(cal, object_code) {
			if (object_code == 'day') {
				cal.show_date();
			}
		}
		var cal_obj2 = null;
		var format = '%j %M %Y %H:%i';

		// loading the page
		function rc_body_onload() {
		var div_cal1 = document.getElementById("cal1_div");
		var div_cal1_pos = RichCalendar.get_obj_pos(div_cal1);

		var cal_obj = new RichCalendar();
			cal_obj.auto_close = false;
			cal_obj.user_onchange_handler = cal_on_change_dummy;
			cal_obj.show(div_cal1_pos[0]+20, div_cal1_pos[1]);
		}
		
		//window.onload = rc_body_onload;
		DOMReady.onDOMReadyHandler = rc_body_onload;
		DOMReady.listenDOMReady();
	</script>
		<table class="forum-board-forum-head" cellpadding="0" cellspacing="0">
			<tr><td class="forum-topic-subject"><?php echo $lang['navbar_calendar']; ?></td></tr>
			<tr><td class="forum-index-stats-sub"> </td></tr>
		</table>
		<table class="forum-index" cellpadding="0" cellspacing="0">
			<tr><td class="forum-index-stats-header forum-index-top"></td></tr>
			<tr><td class="forum-jump-content forum-index-top forum-index-bottom" height="350" id="cal1_div">
			</td></tr>
		</table>
		<table class="forum-index-forum-footer" cellpadding="0" cellspacing="0">
			<tr><td class="forum-index-forum-footer-contents"> </td></tr>
		</table>
<?php }elseif ($template_hook=='end'){ ?>
<?php } ?>
